package com.sun.weekend.ui.fragment;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.sun.weekend.R;
import com.sun.weekend.base.BaseFragment;
import com.sun.weekend.beans.BundleBean;
import com.sun.weekend.util.Go2Util;

/**
 * @author sunleilei
 */

public class MessageFragment extends BaseFragment{

    Button button;
    @Override
    protected int getLayoutId() {
        return R.layout.message_fragment;
    }

    @Override
    protected void findViews(View view) {
        button = (Button) view.findViewById(R.id.button);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                BundleBean bundleBean = new BundleBean();
                bundleBean.setSign("UserCenterRegister");
                Go2Util.startDetailActivity(getContext(),bundleBean);
            }
        });
    }

    public static MessageFragment newInstance() {
        
        Bundle args = new Bundle();
        MessageFragment fragment = new MessageFragment();
        fragment.setArguments(args);
        return fragment;
    }

}
